home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / IOC.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  57 lines

  1. /*
  2.  * Use these macros to read/write the IOC.  All it does is perform the actual
  3.  * read/write.
  4.  */
  5.  
  6. #ifndef __ASSEMBLER__
  7. #define __IOC(offset)    (IOC_BASE + (offset >> 2))
  8. #else
  9. #define __IOC(offset)    offset
  10. #endif
  11.  
  12. #define IOC_CONTROL    __IOC(0x00)
  13. #define IOC_KARTTX    __IOC(0x04)
  14. #define IOC_KARTRX    __IOC(0x04)
  15.  
  16. #define IOC_IRQSTATA    __IOC(0x10)
  17. #define IOC_IRQREQA    __IOC(0x14)
  18. #define IOC_IRQCLRA    __IOC(0x14)
  19. #define IOC_IRQMASKA    __IOC(0x18)
  20.  
  21. #define IOC_IRQSTATB    __IOC(0x20)
  22. #define IOC_IRQREQB    __IOC(0x24)
  23. #define IOC_IRQMASKB    __IOC(0x28)
  24.  
  25. #define IOC_FIQSTAT    __IOC(0x30)
  26. #define IOC_FIQREQ    __IOC(0x34)
  27. #define IOC_FIQMASK    __IOC(0x38)
  28.  
  29. #define IOC_T0CNTL    __IOC(0x40)
  30. #define IOC_T0LTCHL    __IOC(0x40)
  31. #define IOC_T0CNTH    __IOC(0x44)
  32. #define IOC_T0LTCHH    __IOC(0x44)
  33. #define IOC_T0GO    __IOC(0x48)
  34. #define IOC_T0LATCH    __IOC(0x4c)
  35.  
  36. #define IOC_T1CNTL    __IOC(0x50)
  37. #define IOC_T1LTCHL    __IOC(0x50)
  38. #define IOC_T1CNTH    __IOC(0x54)
  39. #define IOC_T1LTCHH    __IOC(0x54)
  40. #define IOC_T1GO    __IOC(0x58)
  41. #define IOC_T1LATCH    __IOC(0x5c)
  42.  
  43. #define IOC_T2CNTL    __IOC(0x60)
  44. #define IOC_T2LTCHL    __IOC(0x60)
  45. #define IOC_T2CNTH    __IOC(0x64)
  46. #define IOC_T2LTCHH    __IOC(0x64)
  47. #define IOC_T2GO    __IOC(0x68)
  48. #define IOC_T2LATCH    __IOC(0x6c)
  49.  
  50. #define IOC_T3CNTL    __IOC(0x70)
  51. #define IOC_T3LTCHL    __IOC(0x70)
  52. #define IOC_T3CNTH    __IOC(0x74)
  53. #define IOC_T3LTCHH    __IOC(0x74)
  54. #define IOC_T3GO    __IOC(0x78)
  55. #define IOC_T3LATCH    __IOC(0x7c)
  56.  
  57.